package org.xems.events
{
	import flash.events.Event;
	
	import org.xems.net.LoaderMission;
	
	/**
	 * 
	 * @author qixiaowei
	 * 
	 */
	public class LoaderEvent extends Event
	{
		public static const LOAD_COMPLETE:String = "loadComplete";
		public static const LOAD_ALL_COMPLETE:String = "loadAllComplete";
		public static const LOAD_ERROR:String = "loadError";
		public static const LOAD_PROGRESS:String = "loadProgress";
		public static const LOAD_START:String = "loadStart";
		public var loaderMission:LoaderMission;
		public var value:*;
		public function LoaderEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
		
		override public function clone():Event
		{
			var evt:LoaderEvent = new LoaderEvent(type, bubbles, cancelable);
			evt.loaderMission = loaderMission;
			evt.value = value;
			return evt;
		}
	}
}